// 引用网络请求中间件
import request from '../../utils/request.js';

export default {
	historyList(id, type = 0, pageNum, pageSize) {
		return request({
			url: `/msg/getHistoryMessage?id=${id}&type=${type}`,
			method: 'POST',
		})
	},
	historyListGroup(teamId, type = 0, pageNum, pageSize) {
		return request({
			url: `/msg/getHistoryMessageTeam?teamId=${teamId}&type=${type}`,
			method: 'POST',
		})
	},
	login(data) {
		return request({
			url: `/app/login`,
			method: 'POST',
			data
		})
	},
	getId(data) {
		return request({
			url: `/msg/getUserId`,
			method: 'POST',
			data
		})
	}
}